import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import { IsInt, ValidateNested } from 'class-validator';
// import { PagingDto } from 'src/common/dto/paging.dto';

class PaymentOrderListDtoParams {
  // @ApiProperty({ required: false })
  // title: string;
}

export class PaymentOrderListDto {
  @ApiProperty()
  @IsInt()
  pageSize: number;

  @ApiProperty()
  @IsInt()
  pageNum: number;

  @ApiProperty()
  @ValidateNested()
  @Type(() => PaymentOrderListDtoParams)
  params: PaymentOrderListDtoParams;
}
